tags:
  - portforward
summary: 打开端口转发
description: 打开端口转发
operationId: "{{ uniqueOpId() }}"
requestBody:
  content:
    application/json:
      schema:
        type: object
        properties:
          token:
            type: string
            description: 访问令牌
          id:
            type: string
            description: SSH连接ID
          remoteAddr:
            type: string
            description: 远程地址
          localAddr:
            type: string
            description: 本地地址
          listen:
            type: string
            enum:
              - local
              - remote
responses:
  "200":
    description: 成功
    content:
      application/json:
        schema:
          type: string
  "500":
    description:  失败
    content:
      application/json:
        schema:
          $ref: "@schemas/errInfo.yml.njk"          